package com.daofree.gulimall.coupon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @ClassName GulimallCouponApplication
 * @Description: coupon启动类
 *                  配置中心如何使用
 *                      1.依赖spring-cloud-starter-alibaba-nacos-config
 *                      2.在应用的 /src/main/resources/bootstrap.properties 配置文件中配置 Nacos Config 元数据
 *                                  spring.application.name=nacos-config-example
 *                                  spring.cloud.nacos.config.server-addr=127.0.0.1:8848
 *                      3. 在配置中添加数据据 gulimall-coupon.properties
 *                      4. @RefreshScope  @Value("${user.name}")
 *
 * @Author DaoTianXia
 * @Date 2020-12-28-17:57
 * @Version V1.0
 **/
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallCouponApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallCouponApplication.class, args);
    }
}
